const express = require('express');

const app = express();
app.set('secret','sh23j223kek2')
app.use(require('cors')()); //跨域模块
app.use(express.json()); // express数据库

app.use('/uploads', express.static(__dirname + '/uploads'))

require('./plugins/db')(app);
require('./routes/admin')(app);

app.listen(80, () => {
    console.log(`http://localhost:80`,"数据库连接成功！！！！")

});
